package com.zhang.observer.obj4JDK;

import java.util.Observer;

public class Client {
    public static void main(String[] args) {
        //创建小偷
        Thief thief = new Thief("王");
        //创建警察
        Policemen policemen =  new Policemen("li");

        //让警察盯着小偷
        thief.addObserver(policemen);
        thief.steal();

    }
}
